package com.ys.entity.purchase;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_DistributionSon", catalog="Id")
public class TcgDistributionSon extends BaseEntity<TcgDistributionSon> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Scode", nameJava="scode", typeDataBase="varchar")
	private String scode;
	@YsField(nameDataBase="SkuId", nameJava="skuId", typeDataBase="varchar")
	private String skuId;
	@YsField(nameDataBase="CreateUser", nameJava="createUser", typeDataBase="varchar")
	private String createUser;
	@YsField(nameDataBase="UpdateUser", nameJava="updateUser", typeDataBase="varchar")
	private String updateUser;
	@YsField(nameDataBase="GoodsId", nameJava="goodsId", typeDataBase="varchar")
	private String goodsId;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="varchar")
	private String pid;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgDistributionSon setId(Long id) {
		this.id = id;
		return this;
	}
	public String getScode() {
		return scode;
	}
	public TcgDistributionSon setScode(String scode) {
		this.scode = scode;
		return this;
	}
	public String getSkuId() {
		return skuId;
	}
	public TcgDistributionSon setSkuId(String skuId) {
		this.skuId = skuId;
		return this;
	}
	public String getCreateUser() {
		return createUser;
	}
	public TcgDistributionSon setCreateUser(String createUser) {
		this.createUser = createUser;
		return this;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public TcgDistributionSon setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
		return this;
	}
	public String getGoodsId() {
		return goodsId;
	}
	public TcgDistributionSon setGoodsId(String goodsId) {
		this.goodsId = goodsId;
		return this;
	}
	public String getPid() {
		return pid;
	}
	public TcgDistributionSon setPid(String pid) {
		this.pid = pid;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgDistributionSon setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgDistributionSon setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgDistributionSon setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgDistributionSon tcgDistributionSon(
		String scode,
		String skuId,
		String createUser,
		String updateUser,
		String goodsId,
		String pid,
		Integer status
			) {
		TcgDistributionSon entity = new TcgDistributionSon();
		entity.setScode(scode);
		entity.setSkuId(skuId);
		entity.setCreateUser(createUser);
		entity.setUpdateUser(updateUser);
		entity.setGoodsId(goodsId);
		entity.setPid(pid);
		entity.setStatus(status);
		return entity;
	}
}